//package com.daocao.hua.impl;
//
//import android.content.Context;
//
//import com.daocao.hua.constant.Const;
//import com.daocao.hua.http.CallBackListener;
//import com.daocao.hua.http.InterfaceServer;
//import com.daocao.hua.http.InfoCallBack;
//import com.daocao.hua.interfaces.LoanResultInfo;
//import com.daocao.hua.http.ResponseListener;
//import com.daocao.hua.model.ApplyForModel;
//import com.daocao.hua.model.ApplyModel;
//import com.daocao.hua.model.LoanRecordModel;
//import com.daocao.hua.model.LoanResultModel;
//import com.daocao.hua.model.RequestModel;
//import com.daocao.hua.util.JsonUtil;
//
//import java.util.HashMap;
//
///**
// * 借款结果
// */
//public class LoanResultInfoImpl implements LoanResultInfo {
//
//    public void getLoanResultInfo(Context paramContext, String paramString, final InfoCallBack callBack) {
//        HashMap localHashMap = new HashMap();
//        localHashMap.put("deal_id", paramString);
//        RequestModel model = new RequestModel(localHashMap);
//        InterfaceServer.getInstance(paramContext.getApplicationContext()).requestInterface(Const.LOAN_DETAIL, Const.RequestMethod.POST, model, Const.DEFAULT_TIMEOUT, new CallBackListener<LoanResultModel>(LoanResultModel.class,callBack));
////                new ResponseListener() {
////            public void onFinishInMainThread(Object paramAnonymousObject) {
////            }
////
////            public void onStartInMainThread(Object paramAnonymousObject) {
////                paramInfoCallBack.onFailure(paramAnonymousObject.toString());
////            }
////
////            public void onSuccessInMainThread(int paramAnonymousInt, String paramAnonymousString, Object result) {
////                try {
////                    LoanResultModel model = (LoanResultModel) result;
////                    if (model.getStatus() == 0) {
////                        paramInfoCallBack.onFailure(model.getMsg());
////                    } else
////                        paramInfoCallBack.onSuccess(model);
////                } catch (Exception e) {
////                    e.printStackTrace();
////                }
////            }
////
////            @Override
////            public Object onSuccessInRequestThread(int statusCode, String content) {
////                try {
////                    return JsonUtil.<LoanResultModel>fromJson(content, LoanResultModel.class);
////                } catch (Exception e) {
////                    return null;
////                }
////            }
////        });
//    }
//
//    @Override
//    public void getApplyForInfo(Context mContext, String deal_id, final InfoCallBack callBack) {
//        HashMap localHashMap = new HashMap();
//        localHashMap.put("deal_id", deal_id);
//        RequestModel model = new RequestModel(localHashMap);
//        InterfaceServer.getInstance(mContext.getApplicationContext()).requestInterface(Const.APPLY_STATUS, Const.RequestMethod.POST, model, Const.DEFAULT_TIMEOUT,new CallBackListener<ApplyForModel>(ApplyForModel.class,callBack));
////                new ResponseListener() {
////            public void onFinishInMainThread(Object paramAnonymousObject) {
////            }
////
////            public void onStartInMainThread(Object paramAnonymousObject) {
////                callBack.onFailure(paramAnonymousObject.toString());
////            }
////
////            public void onSuccessInMainThread(int paramAnonymousInt, String paramAnonymousString, Object result) {
////                try {
////                    ApplyForModel model = (ApplyForModel) result;
////                    if (model.getStatus() == 0) {
////                        callBack.onFailure(model.getMsg());
////                    } else
////                        callBack.onSuccess(model);
////                } catch (Exception e) {
////                    e.printStackTrace();
////                }
////            }
////
////            @Override
////            public Object onSuccessInRequestThread(int statusCode, String content) {
////                try {
////                    return JsonUtil.<ApplyForModel>fromJson(content, ApplyForModel.class);
////                } catch (Exception e) {
////                    return null;
////                }
////            }
////        });
//    }
//}